// 配置结构
const { Schema, model } = require("mongoose");

// 设定集合规则
const studentSchema = new Schema(
  {
    phone: String,
    name: String,
    password: String,
    gender: String,
    avatar: String
  },
  { versionKey: false }
);
// 创建集合并应用规则
const studentsModel = model("studentsModel", studentSchema, "students"); // courses

module.exports = {
  studentsModel
};
